/*****************************************************************************/
/**
 *	\file	mgrobj->customer.cpp
 *	\author	Xavier
 *	\date	2023/05/07
 *	\version	1.0
 *	\brief	mgrobj->customer类的构造函数和析构函数
 *	\note	Copyright (c) 2020-2030 南京理工大学
 *	\remarks	无
 ******************************************************************************/
#include "head.h"

Customer::Customer()
{ // 构造函数
	cout << "请您输入顾客的姓名\n";
	inputStr(name, sizeof(name));
Again006:
	cout << "请您输入顾客的身份证号码\n";
	inputStr(ID, sizeof(ID));
	if (strlen(ID) != 18)
	{
		cout << "非身份证号码，请重新输入" << endl;
		goto Again006;
	}
	prepaid = change = day = 0;
}
Customer::Customer(char *name, char *ID)
{
	set_name(name);
	set_ID(ID);
	prepaid = change = day = 0;
}
Customer::~Customer()
{ // 析构函数
	cout << "该顾客退房成功!" << endl;
}